import axios from "axios"

// 接口基础地址
const service = axios.create({
  baseURL: "",
  timeout: 10000 // 请求超时时间
})


// 请求拦截器
service.interceptors.request.use(function (request) {
	console.log("request", request)
	return request
}, function (error) {
	return Promise.reject(error)
})

//响应拦截器
service.interceptors.response.use(function (response) {
	console.log("response", response)
	return response
}, function (error) {
	return Promise.reject(error)
})
export default service
